package com.qhhc.entity;

import com.fasterxml.jackson.annotation.JsonFormat;


import java.util.Date;

public class CarDealer {
    private Long id;
    private Long userId;
    private String dealerName;
    private String address;
    private String businessLicense;
    private String contactPerson;
    private String contactPhone;
    private String logo;
    private String description;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Override
    public String toString() {
        return "CarDealer{" +
                "id=" + id +
                ", userId=" + userId +
                ", dealerName='" + dealerName + '\'' +
                ", address='" + address + '\'' +
                ", businessLicense='" + businessLicense + '\'' +
                ", contactPerson='" + contactPerson + '\'' +
                ", contactPhone='" + contactPhone + '\'' +
                ", logo='" + logo + '\'' +
                ", description='" + description + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public CarDealer(Long id, Long userId, String dealerName, String address, String businessLicense, String contactPerson, String contactPhone, String logo, String description, Date createTime, Date updateTime) {
        this.id = id;
        this.userId = userId;
        this.dealerName = dealerName;
        this.address = address;
        this.businessLicense = businessLicense;
        this.contactPerson = contactPerson;
        this.contactPhone = contactPhone;
        this.logo = logo;
        this.description = description;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public CarDealer() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDealerName() {
        return dealerName;
    }

    public void setDealerName(String dealerName) {
        this.dealerName = dealerName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}